package com.ruicar.afs.cloud.common.modules.dto.mq.affiliation;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>Description: </p>
 *
 * @author panhj
 * @version 1.0
 * @date create on 2020-06-30 18:41
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AffiliationRelDto {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    /** id -- ID */
    private Long id;
    private Long channelId;
    private Long arriliatedId;
    private String status;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    private String delFlag;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date channelTermValidity;
}
